<%-- 
    Document   : rpt_inventarioGeneral
    Created on : 08-30-2012, 10:52:13 AM
    Author     : marco.castro
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<jsp:include page="includeCSSjs.jsp"/>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        
		<script type="text/javascript">
			function showReport(){
				
				var fondo = $("#fuentefondo").val();
				
				var bodega = $("#bodega").val();
				
				var url = "http://192.168.1.20:8181/pentaho/content/reporting/reportviewer/report.html?solution=Reportes+Bodega&path=&name=inventario_general.prpt#idfuentefondo="+fondo+"&idbodega="+bodega+"&output-target=pageable%252Fpdf&%253A%253Asession=2e70e1d1-1a03-11e2-9a9a-617d627480ca&showParameters=false&solution=Reportes+Bodega&name=inventario_general.prpt&path";
				
				 window.open(url, '_self',false);
			      
			}
		</script>
    </head>
    <link href="../resources/css.css" rel="stylesheet" type="text/css" />
    <body>
        <font class="divTextoEncabezado">Reporte de Inventario General</font>
        <br><br>
        <form:form method="post" action="rptInventarioGenearl" commandName="rptInventarioGenearl">

<table width="50%" border="0">
  <tr>
    <td width="50%"><label class="text0">Fuente de Fondos</label> </td>
    <td width="50%">
		<form:select path="idFuenteFondo"  id="fuentefondo" class="required cmbFactura1">
	<form:options items="${fondo}" itemValue="idFuentefondo" itemLabel="nombreFuentefondo" />
</form:select>
    </td>
  </tr>
</table>



<div class='divTablaDerecha'>
<table width="100%" border="0">
  <tr>
    <td width="50%"><label class="text0">Bodega</label> </td>
    <td width="50%">
<form:select path="idBodega" size="1" id="bodega" class="required cmbFactura1">
		<form:options items="${bodega}" itemValue="idBodega" itemLabel="nombreBodega" />
	</form:select>
    </td>
  </tr>
 </table>
</div>
<div class='divBotonGenerarReporte0'>
		<a href="#" onclick="showReport()"><img src="../resources/img/boton_generarReporte.png" width="123" height="31" class="inputBoton"></a>
		
	</div>
</form:form>

<div class='divTablaRpt0'>
</div>
</body>
</html>
